.completion-toast {
  position: fixed;
  top: 80px;
  right: 20px;
  min-width: 320px;
  max-width: 400px;
  background: #21262d;
  border: 1px solid #30363d;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  z-index: 10000;
  transform: translateX(100%);
  opacity: 0;
  transition: all 0.3s ease;
  overflow: hidden;
}

.completion-toast.visible {
  transform: translateX(0);
  opacity: 1;
}

.completion-toast.success {
  border-left: 4px solid #2ea043;
}

.completion-toast.error {
  border-left: 4px solid #f85149;
}

.completion-toast.warning {
  border-left: 4px solid #fb8500;
}

.toast-content {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
}

.toast-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.toast-message {
  flex: 1;
  color: #c9d1d9;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

.toast-close {
  background: none;
  border: none;
  color: #8b949e;
  cursor: pointer;
  font-size: 16px;
  padding: 4px;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.toast-close:hover {
  background: #30363d;
  color: #c9d1d9;
}

.toast-progress-bar {
  height: 3px;
  background: linear-gradient(90deg, #2ea043, #3fb950);
  animation: toast-countdown 3s linear;
}

.completion-toast.error .toast-progress-bar {
  background: linear-gradient(90deg, #f85149, #ff6b6b);
}

.completion-toast.warning .toast-progress-bar {
  background: linear-gradient(90deg, #fb8500, #ffa500);
}

@keyframes toast-countdown {
  0% {
    width: 100%;
  }
  100% {
    width: 0%;
  }
}

/* 响应式设计 */
@media (max-width: 768px) {
  .completion-toast {
    top: 70px;
    right: 10px;
    left: 10px;
    min-width: auto;
    max-width: none;
  }
  
  .toast-content {
    padding: 12px 16px;
  }
  
  .toast-icon {
    font-size: 18px;
  }
  
  .toast-message {
    font-size: 13px;
  }
} 